/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 */

// import { NewAppScreen } from '@react-native/new-app-screen';
import { 
  StatusBar, 
  StyleSheet, 
  useColorScheme, 
  Platform, 
  SafeAreaView,
} from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';

import Home from './src/modules/home';
function App() {
  const isDarkMode = useColorScheme() === 'dark';
  console.log('isDarkMode', isDarkMode, Platform.OS);
  return (
    <SafeAreaProvider>
    <SafeAreaView 
      style={[
        styles.root
      ]} 
    >
      <StatusBar
        barStyle={isDarkMode ? 'light-content' : 'dark-content'}
        translucent={false}
      />
      <Home />
    </SafeAreaView>
    </SafeAreaProvider>
  );
}

const styles = StyleSheet.create({
  root: {
    flex: 1,
    flexDirection: 'column',
    // paddingTop: StatusBar.currentHeight,
    // paddingBottom: StatusBar.currentHeight,
    backgroundColor: '#fff',
  },
});

export default App;
